﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AirManager.Entities;

namespace AirManagerTest.FactorySample
{
    public class FleetFactorySample
    {

        public Fleet Criar_Fleet_Simples()
        {
            var fleet = new Fleet { Nome = "Avião Test" };
            return fleet;
        }

        public Fleet Criar_Fleet_Com_Fixes()
        {
            var fleet = this.Criar_Fleet_Simples();
            for (var i = 1; i < 100; i++)
            {
                fleet.AddFix(new Fix { Descricao = "Manutenção teste" + i, DataRevisao = DateTime.Now });
            }
            return fleet;
        }

        public Fleet Criar_Fleet_Com_Pilots()
        {
            var fleet = this.Criar_Fleet_Simples();
            for (var i = 1; i < 100; i++)
            {
                fleet.AddPilot(new Pilot { Nome = "Pilot Name" + 1 });
            }
            return fleet;
            
        }

        public Fleet Criar_Fleet_Com_Fixes_and_Pilots()
        {
            var fleet = this.Criar_Fleet_Com_Fixes();
            for (var i = 1; i < 100; i++)
            {
                fleet.AddPilot(new Pilot { Nome = "Pilot Name" + 1 });
            }
            return fleet;
            }

    }


}
